import request from '@/utils/request'

// 用户列表
export function cusList(data) {
  return request({
    url: '/api/cus_list',
    method: 'POST',
    data,
  })
}
// 新增/修改用户
export function cusAdd(data) {
  return request({
    url: '/api/cus_add',
    method: 'POST',
    data,
  })
}
//删除用户
export function cusDel(data) {
  return request({
    url: '/api/cus_user_del',
    method: 'POST',
    data,
  })
}

//客户档案详情
export function cusDetail(data) {
  return request({
    url: '/api/cus_detail',
    method: 'POST',
    data,
  })
}

//客户档案详情卡 余额
export function cusPrepaid(data) {
  return request({
    url: '/api/cus_prepaid',
    method: 'POST',
    data,
  })
}

//客户档案详情优惠卷
export function cusCoupon(data) {
  return request({
    url: '/api/cus_coupon',
    method: 'POST',
    data,
  })
}

//用户列表
export function cumulativeOrder(data) {
  return request({
    url: '/api/cumulative_order',
    method: 'POST',
    data,
  })
}
